﻿using Anke.SHManage.BLL;
using Anke.SHManage.MSSQLDAL;
using Anke.SHManage.MSSQLDAL.TJDAL;
using Anke.SHManage.Web.Reports.DataSetForPrintTableAdapters;
using Microsoft.Reporting.WebForms;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Anke.SHManage.Web.Reports
{
    public partial class TimeModeWebForm : System.Web.UI.Page
    {      
        private string reportName;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.ReportViewer1.LocalReport.EnableHyperlinks = true;
                InitPage();
                
            }
            else
            {
                reportName = Convert.ToString(ViewState["reportName"]);
            }
            
        }
        protected void btnSearch_Click(object sender, EventArgs e)
        {
            BindReportDataSource();
        }

        private void InitPage()
        {         
            this.StartDate.Text = DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd 07:30:00");
            this.EndDate.Text = DateTime.Now.ToString("yyyy-MM-dd 07:30:00");
            if (Request.QueryString["ReportName"] != null)
            {
                reportName = Request.QueryString["ReportName"];
                ViewState["reportName"] = reportName;
            }
            else
            {
                reportName = "LS_ZDTFXZHSG.rdlc";
                ViewState["reportName"] = reportName;
            }
            if (reportName == "TJ_GRXFFSCG.rdlc") { this.StartDate.Text = DateTime.Now.ToString("yyyy-01-01 00:00:00"); }
            BindReportDataSource();
        }    

         protected void BindReportDataSource()
         {
            
             DateTime start = Convert.ToDateTime(this.StartDate.Text);
             DateTime end = Convert.ToDateTime(this.EndDate.Text);
             string start1 = start.ToString();
             string end1 = end.ToString();
             this.ReportViewer1.LocalReport.DataSources.Clear();
             this.ReportViewer1.LocalReport.ReportPath = Server.MapPath(@"~/Reports/" + reportName);
             Microsoft.Reporting.WebForms.ReportParameter st = new Microsoft.Reporting.WebForms.ReportParameter("StartTime", start1);
             Microsoft.Reporting.WebForms.ReportParameter ed = new Microsoft.Reporting.WebForms.ReportParameter("EndTime", end1);
             this.ReportViewer1.LocalReport.SetParameters(new Microsoft.Reporting.WebForms.ReportParameter[] { st, ed });
             string eventDispatchCenterID = UserOperateContext.Current.Seesion_Dispatch_SubCenterID; //2020-11-22 zch 登录人所处急救中心
             LSDAL dal = new LSDAL();
             TJDAL dalt = new TJDAL();
             I_InvoiceApplyDAL iadal = new I_InvoiceApplyDAL();
             switch (reportName)  
             {
                 //case "LS_ZDTFXZHSG.rdlc"://重大突发性灾害事故流水表 
                 //    this.Page.Title = "重大突发性灾害事故流水表";
                 //    DataTable dt = dal.Get_LS_ZDTFXZHSG(start, end);
                 //    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_ZDTFXZHSG", dt));
                 //    break;
                 case "LS_DDRZ.rdlc"://调度日志流水表                   
                     this.Page.Title = "调度日志流水表";
                     DataTable dt1 = dal.Get_LS_DDRZ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_DDRZ", dt1));
                     break;
                 case "LS_FSTZ.rdlc"://发送通知流水表               
                     this.Page.Title = "发送通知流水表";
                     DataTable dt2 = dal.Get_LS_FSTZ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_FSTZ", dt2));
                     break;
                 case "LS_RCJJDDLFDSJD.rdlc"://日常急救到达率分段（时间段）表   
                     this.Page.Title = "日常急救到达率分段（时间段）表";
                     DataTable dt3 = dal.Get_LS_RCJJDDLFDSJD(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_RCJJDDLFDSJD", dt3));
                     DataTable dte = dal.Get_LS_RCJJDDLFDSJDSum(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_RCJJDDLFDSJDSum", dte));
                     break;
                 case "LS_SJDWCGL.rdlc"://手机定位成功率统计表     
                     this.Page.Title = "手机定位成功率统计表";
                     DataTable dt4 = dal.Get_LS_SJDWCGL(start, end);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_SJDWCGL", dt4));
                     break;
                 case "LS_WZBRBQYBDJ.rdlc"://危重病人病情预报登记表    
                     this.Page.Title = "危重病人病情预报登记表";
                     DataTable dt5 = dal.Get_LS_WZBRBQYBDJ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_WZBRBQYBDJ", dt5));
                     break;
                 case "LS_YYGZDJ.rdlc"://医院搁置担架统计表      
                     this.Page.Title = "医院搁置担架统计表";
                     DataTable dt6 = dal.Get_LS_YYGZDJ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_YYGZDJ", dt6));
                     break;
                 case "LS_YYGZJHCDJYXCC.rdlc"://医院搁置救护车担架影响出车统计表   
                     this.Page.Title = "医院搁置救护车担架影响出车统计表";
                     DataTable dt7 = dal.Get_LS_YYGZJHCDJYXCC(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_YYGZJHCDJYXCC", dt7));
                     break;
                 case "TJ_CCCSFD.rdlc"://出车次数分段统计表        
                     this.Page.Title = "出车次数分段统计表";
                     DataTable dt8 = dalt.Get_TJ_CCCSFD(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_CCCSFD", dt8));
                     break;
                 case "TJ_CCQK.rdlc"://出车情况统计表           
                     this.Page.Title = "出车情况统计表";
                     DataTable dt9 = dalt.Get_TJ_CCQK(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_CCQK", dt9));
                     break;
                 case "TJ_DDYGZL.rdlc"://调度员工作量统计表      
                     this.Page.Title = "调度员工作量统计表";
                     DataTable dt10 = dalt.Get_TJ_DDYGZL(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DDYGZL", dt10));
                     break;
                 case "TJ_DDYGZL2.rdlc"://调度员工作量统计表（二）    
                     this.Page.Title = "调度员工作量统计表（二）";
                     DataTable dt11 = dalt.Get_TJ_DDYGZL2(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DDYGZL2", dt11));
                     break;
                 case "TJ_DDYGZXL.rdlc"://调度员工作效率统计表      
                     this.Page.Title = "调度员工作效率统计表";
                     DataTable dt12 = dalt.Get_TJ_DDYGZXL(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DDYGZXL", dt12));
                     break;
                 case "TJ_DJJ.rdlc"://对讲机统计表               
                     this.Page.Title = "对讲机统计表";
                     DataTable dt13 = dalt.Get_TJ_DJJ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DJJ", dt13));
                     break;
                 case "TJ_FCQKMX2.rdlc"://放车情况明细统计表（二）     
                     this.Page.Title = "放车情况明细统计表（二）";
                     DataTable dt14 = dalt.Get_TJ_FCQKMX2(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCQKMX2", dt14));
                     break;
                 case "TJ_FCQKMX1.rdlc"://放车情况明细统计表（一）    
                     this.Page.Title = "放车情况明细统计表（一）";
                     DataTable dt15 = dalt.Get_TJ_FCQKMX1(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCQKMX1", dt15));
                     DataTable dt16 = dalt.Get_TJ_FCQKMX1BT1(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCQKMX1_BING1", dt16));
                     DataTable dt17 = dalt.Get_TJ_FCQKMX1BT2(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCQKMX1_BING2", dt17));
                     DataTable dt18 = dalt.Get_TJ_FCQKMX1ZX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCQKMX1_ZHEXIAN1", dt18));
                     break;
                 case "TJ_FCYQYSJGX.rdlc"://放车与区域时间关系统计表        
                     this.Page.Title = "放车与区域时间关系统计表";
                     DataTable dt19 = dalt.Get_TJ_FCYQYSJGX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FCYQYSJGX", dt19));
                     break;
                 case "TJ_FZXBGFSXB.rdlc"://分中心上下班问题统计表       
                     this.Page.Title = "分中心上下班问题统计表";
                     DataTable dt20 = dalt.Get_TJ_FZXSXBWT(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FZXBGFSXB", dt20));
                     break;
                 case "TJ_FZXZTDY.rdlc"://分中心暂停调用统计表         
                     this.Page.Title = "分中心暂停调用统计表";
                     DataTable dt21 = dalt.Get_TJ_FZXZTDY(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_FZXZTDY", dt21));
                     break;
                 case "TJ_HJBZQK.rdlc"://呼病种情况统计表            
                     this.Page.Title = "呼病种情况统计表";
                     DataTable dt22 = dalt.Get_TJ_HJBZQK(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_HJBZQK", dt22));
                     DataTable dt23 = dalt.Get_TJ_HJBZQK_XBYJB(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_HJBZQK_XBYJB", dt23));
                     DataTable dt24 = dalt.Get_TJ_HJBZQK_NLYJB(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_HJBZQK_NLYJB", dt24));
                     break;
                 case "TJ_HJDHPDFZ.rdlc"://呼救电话排队峰值统计表         
                     this.Page.Title = "呼救电话排队峰值统计表";
                     DataTable dt25 = dalt.Get_TJ_HJDHPDFZ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetFor_TJ_HJDHPDFZ", dt25));
                     break;
                 case "TJ_HCYQYSJGX.rdlc"://回车与区域时间关系统计表      
                     this.Page.Title = "回车与区域时间关系统计表";
                     DataTable dt26 = dalt.Get_TJ_HCYQYSJGX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_HCYQYSJGX", dt26));
                     break;
                 case "TJ_JJFYSJRB.rdlc"://急救反应时间(日报)统计表       
                     this.Page.Title = "急救反应时间(日报)统计表";
                     DataTable dt27 = dalt.Get_TJ_JJFYSJRB(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJFYSJRB", dt27));
                     DataTable dt28 = dalt.Get_TJ_JJFYSJRB1(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJFYSJRB1", dt28));
                     DataTable dt29 = dalt.Get_TJ_JJFYSJRB2(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJFYSJRB2", dt29));
                     DataTable dt30 = dalt.Get_TJ_JJFYSJRB_CenterTime(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJFYSJRB_CenterTime", dt30));
                     break;
                 case "TJ_JBYSJGX.rdlc"://疾病与时间关系统计表          
                     this.Page.Title = "疾病与时间关系统计表";
                     DataTable dt32 = dalt.Get_TJ_JBYSJGX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JBYSJGX", dt32));
                     break;
                 case "TJ_RJRCCCSFB.rdlc"://人均日出车次数分布统计表      
                     this.Page.Title = "人均日出车次数分布统计表";
                     DataTable dt33 = dalt.Get_TJ_RJRCCCSFB(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_RJRCCCSFB", dt33));
                     break;
                 case "TJ_SWDDLX.rdlc"://送往地点类型统计表          
                     this.Page.Title = "送往地点类型统计表";
                     DataTable dt34 = dalt.Get_TJ_SWDDLX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_SWDDLX", dt34));
                     break;
                 case "TJ_WZBRBQYBDJ.rdlc"://危重病人病情预报登记统计表        
                     this.Page.Title = "危重病人病情预报登记统计表";
                     DataTable dt36 = dalt.Get_TJ_WZBRBQYBDJ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_WZBRBQYBDJ", dt36));
                     break;
                 case "TJ_WJSFCSJFX.rdlc"://未及时放车时间分析表       
                     this.Page.Title = "未及时放车时间分析表";
                     DataTable dt37 = dalt.Get_TJ_WJSFCSJFX(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_WJSFCSJFX", dt37));
                     break;
                 case "TJ_XCDD.rdlc"://现场地点统计表         
                     this.Page.Title = "现场地点统计表";
                     DataTable dt38 = dalt.Get_TJ_XCDD(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_XCDD", dt38));
                     break;
                 case "TJ_ZFZXCS.rdlc"://转分中心次数统计表         
                     this.Page.Title = "转分中心次数统计表";
                     DataTable dt39 = dalt.Get_TJ_ZFZXCS(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_ZFZXCS", dt39));
                     break;
                 case "TJ_ZYSJ.rdlc"://转院数据统计表        
                     this.Page.Title = "转院数据统计表";
                     DataTable dt40 = dalt.Get_TJ_ZYSJ(start, end, eventDispatchCenterID);
                     this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_ZYSJ", dt40));
                     break;
                 case "LS_RYCZZT.rdlc"://人员操作状态流水表        
                    this.Page.Title = "人员操作状态流水表";
                    DataTable dt41 = dal.Get_LS_RYCZZT(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_RYCZZT", dt41));
                    break;
                 case "TJ_GRXFFSCG.rdlc"://   
                    this.Page.Title = "个人心肺复苏成功统计";
                    this.StartDate.Text = DateTime.Now.ToString("yyyy-01-01 00:00:00");
                    start = Convert.ToDateTime(DateTime.Now.ToString("yyyy-01-01 00:00:00"));
                    DataTable dt42 = dalt.Get_TJ_GRXFFSCG(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt42));
                    break;


                 case "TJ_ZXCQBFYYXJ.rdlc"://   
                    this.Page.Title = "中心城区部分医院衔接工作数据表";

                    DataTable dt43 = dalt.get_TJ_ZXCQBFYY(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", dt43));
                    DataTable dt44 = dalt.Get_TJ_FCQKMX1(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet2", dt44));
                    DataTable dt45 = dal.Get_LS_YYGZDJ(start, end, eventDispatchCenterID);
                       this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet3", dt45));
                    break;
                 case "TJ_JSYGZL.rdlc"://驾驶员工作量统计表    2016-11-15  周志猛 
                    this.Page.Title = "驾驶员工作量统计表";
                    DataTable dt46 = dalt.Get_TJ_JSYGZL(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JSYGZL", dt46));
                    break;
                 //case "TJ_DDGZQK.rdlc"://调度工作情况统计表    2016-11-15  周志猛 
                 //   this.Page.Title = "调度工作情况统计表";
                 //   DataTable dt47 = dalt.Get_TJ_DDGZQK(start, end);
                 //   this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DDGZQK", dt47));
                 //   break;
                 case "TJ_YSGZL.rdlc"://医生工作量统计表    2016-11-15  周志猛 
                    this.Page.Title = "医生工作量统计表";
                    DataTable dt48 = dalt.Get_TJ_YSGZL(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YSGZL", dt48));
                    break;
                 case "TJ_JMBY.rdlc"://静脉补液    2016-11-25  周志猛 
                    this.Page.Title = "静脉补液";
                    DataTable dt49 = dalt.Get_TJ_JMBY(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JMBY", dt49));
                    break;
                 case "TJ_GDCZ.rdlc"://固定操作    2016-11-25  周志猛 
                    this.Page.Title = "固定操作";
                    DataTable dt50 = dalt.Get_TJ_GDCZ(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_GDCZ", dt50));
                    break;
                 case "TJ_RGXWAY.rdlc"://人工胸外按压    2016-11-25  周志猛 
                    this.Page.Title = "人工胸外按压";
                    DataTable dt51 = dalt.Get_TJ_RGXWAY(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_RGXWAY", dt51));
                    break;
                 case "TJ_YQJJBLWCXL.rdlc"://院前急救病历完成效率统计表    2016-12-10  周志猛 
                    this.Page.Title = "院前急救病历完成效率统计表";
                    DataTable dt52 = dalt.Get_TJ_YQJJBLWCXL(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YQJJBLWCXL", dt52));
                    break;
                 case "TJ_YQJJBLWCZL.rdlc"://院前急救病历完成质量统计表    2016-12-10  周志猛 
                    this.Page.Title = "院前急救病历完成质量统计表";
                    DataTable dt53 = dalt.Get_TJ_YQJJBLWCZL(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YQJJBLWCZL", dt53));
                    break;
                 case "TJ_JSYGPSRWZTAJCZ.rdlc"://驾驶员GPS任务状态按键操作统计表 2016-12-13 周志猛
                    this.Page.Title = "驾驶员GPS任务状态按键操作统计表";
                    DataTable dt54 = dalt.Get_TJ_JSYGPSRWZTAJCZ(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JSYGPSRWZTAJCZ", dt54));
                    break;
                 case "TJ_JJZXZH.rdlc"://急救中心综合统计表 2016-12-13 周志猛
                    this.Page.Title = "急救中心综合统计表";
                    DataTable dt56 = dalt.Get_TJ_JJZXZH(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJZXZH", dt56));
                    break;
                 case "TJ_DDYTHZL.rdlc"://调度员通话质量统计表 2016-12-13 周志猛
                    this.Page.Title = "调度员通话质量统计表";
                    DataTable dt57 = dalt.Get_TJ_DDYTHZL(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DDYTHZL", dt57));
                    break;
                 case "TJ_ZWDPYY.rdlc"://转为待派原因统计表 2016-12-14 周志猛
                    this.Page.Title = "转为待派原因统计表";
                    DataTable dt58 = dalt.Get_TJ_ZWDPYY(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_ZWDPYY", dt58));
                    break;
                 case "TJ_DJYGZL.rdlc"://担架员工作量统计表 2016-12-15 周志猛
                    this.Page.Title = "担架员工作量统计表";
                    DataTable dt59 = dalt.Get_TJ_DJYGZL(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_DJYGZL", dt59));
                    break;
                 //case "TJ_JSYGZXL.rdlc"://驾驶员工作效率统计表 2016-12-15 周志猛
                 //   this.Page.Title = "驾驶员工作效率统计表";
                 //   DataTable dt60 = dalt.Get_TJ_JSYGZXL(start, end);
                 //   this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JSYGZXL", dt60));
                 //   break;
                 case "TJ_JJZXGFZCLYW.rdlc"://医疗急救中心各分站车辆业务量统计表 2016-12-16 周志猛
                    this.Page.Title = "医疗急救中心各分站车辆业务量统计表";
                    DataTable dt62 = dalt.Get_TJ_JJZXGFZCLYW(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JJZXGFZCLYW", dt62));
                    break;
                 case "TJ_YWLQK.rdlc"://业务量情况统计表 2017-01-12 周志猛
                    this.Page.Title = "业务量情况统计表";
                    DataTable dt63 = dalt.Get_TJ_YWLQK(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YWLQK", dt63));
                    break;
                 case "TJ_YXXLQK.rdlc"://运行效率情况统计表 2017-01-13 周志猛
                    this.Page.Title = "运行效率情况统计表";
                    DataTable dt64 = dalt.Get_TJ_YXXLQK(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YXXLQK", dt64));
                    break;
                 case "TJ_JSYYXXLQK.rdlc"://驾驶员运行效率情况统计表 2017-01-19 周志猛
                    this.Page.Title = "驾驶员运行效率情况统计表";
                    DataTable dt65 = dalt.Get_TJ_JSYYXXLQK(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JSYYXXLQK", dt65));
                    break;

                 case "TJ_WSBRZSYY.rdlc"://外伤病人转送医院统计表 2017-11-08 周志猛
                    this.Page.Title = "外伤病人转送医院统计表";
                    DataTable dt66 = dalt.Get_TJ_WSBRZSYY(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_WSBRZSYY", dt66));
                    break;
                 case "TJ_ZXYYWSBRZY.rdlc"://外伤病人转送医院统计表 2017-11-08 周志猛
                    this.Page.Title = "外伤病人转送医院统计表";
                    DataTable dt67 = dalt.Get_TJ_ZXYYWSBRZY(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_ZXYYWSBRZY", dt67));
                    break;
                 case "LS_WSBRZSYY.rdlc"://外伤病人转送医院流水表 2017-11-08 周志猛  
                    this.Page.Title = "外伤病人转送医院流水表";
                    DataTable dt68 = dal.Get_LS_WSBRZSYY(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_WSBRZSYY", dt68));
                    break;
                 case "LS_ZXYYWSBRZY.rdlc"://外伤病人转送医院流水表 2017-11-08 周志猛
                    this.Page.Title = "外伤病人转送医院流水表";
                    DataTable dt69 = dal.Get_LS_ZXYYWSBRZY(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForLS_ZXYYWSBRZY", dt69));
                    break;
                 case "TJ_YSYSYFP.rdlc"://医生已使用发票统计表 2018-06-04 zch
                    this.Page.Title = "医生已使用发票统计表";
                    DataTable dt70 = dalt.Get_TJ_YSYSYFP(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YSYSYFP", dt70));
                    break;
                 case "TJ_YSJMBY.rdlc"://医生静脉补液统计表 2018-12-19 zch
                    this.Page.Title = "医生静脉补液统计表";
                    DataTable dt71 = dalt.Get_TJ_YSJMBY(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YSJMBY", dt71));
                    break;
                 case "TJ_YSJMBYN.rdlc"://医生静脉补液统计表 新 2024-07-12 zch
                    this.Page.Title = "医生静脉补液统计表(新)";
                    DataTable dt71_1 = dalt.Get_TJ_YSJMBYN(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YSJMBYN", dt71_1));
                    break;
                 case "TJ_JZCSFSNEW.rdlc"://救治措施（复苏类）统计表 新 2018-12-19 zch
                    this.Page.Title = "救治措施（复苏类）统计表 新";
                    DataTable dt72 = dalt.Get_TJ_JZCSFSNEW(start, end);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_JZCSFSNEW", dt72));
                    break;
                 case "TJ_WJSFCQYFX.rdlc"://未及时放车区域分析表  add2020-04-27 plq     
                    this.Page.Title = "未及时放车区域分析表";
                    DataTable dt73 = dalt.Get_TJ_WJSFCQYFX(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_WJSFCQYFX", dt73));
                    break;
                 case "TJ_YQJJYWSBXXTJB.rdlc"://院前急救业务上报信息统计表  add2020-04-27 sr     2020-06-30 zch 修改 //2023-03-07 plq 从闵行移植
                    this.Page.Title = "院前急救业务上报信息统计表（新）";
                    DataTable dt89_1 = dalt.TJ_YQJJYWSBXXTJB1(start, end, eventDispatchCenterID);
                    DataTable dt89_2 = dalt.TJ_YQJJYWSBXXTJB2(start, end, eventDispatchCenterID);
                    DataTable dt89_3 = dalt.TJ_YQJJYWSBXXTJB3(start, end, eventDispatchCenterID);
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YQJJYWSBXXTJB1", dt89_1));
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YQJJYWSBXXTJB2", dt89_2));
                    this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSetForTJ_YQJJYWSBXXTJB3", dt89_3));
                    break;
                 default:
                    break;                               
             }
             this.ReportViewer1.LocalReport.Refresh();
         }
      
    }
}